import execjs

with open(r"C:\website\toutiao2\test.js",) as f:
    content=f.read()
ctx=execjs.compile(content)
jscode='add("{0}","{1}")'.format(5,8)
print(ctx.eval(jscode))

